package com.levy.contronller.javaWeb.threadMasterWorker;

public class MyWorker extends Worker {

    public static Object handle(Task task) {
        Object output = null;
        try {
            //标拾处理任务的耗时  可能是加工数据 也可能是操作数据库
            Thread.sleep(500);
            output = task.getPrice();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return output;

    }

}
